import request from '/@/utils/request';

export function goodsStockLogApi() {
	return {
		create: (data: object) => {
			return request({
				url: '/management/goods/stocklog/create',
				method: 'post',
				data,
			});
		},
		update: (data: object) => {
			return request({
				url: '/management/goods/stocklog/update',
				method: 'put',
				data,
			});
		},

		delete: (id: any) => {
			return request({
				url: `/management/goods/stocklog/delete/${id}`,
				method: 'delete',
			});
		},
		view: (id: any) => {
			return request({
				url: `/management/goods/stocklog/view/${id}`,
				method: 'get',
			});
		},
		search: (data: object) => {
			return request({
				url: '/management/goods/stocklog/search',
				method: 'post',
				data,
			});
		},
	};
}
